home *** CD-ROM | disk | FTP | other *** search
/ Amiga Tools 5 / Amiga Tools 5.iso / grafik / 3d & render tools / irit / man / man6 / pt3bary.6 < prev    next >
Encoding:
Text File  |  1996-07-16  |  586 b   |  23 lines

  1. .TH PT3BARY
  2.  6 "IRIT Version 6.0" 
  3. .SH NAME
  4. PT3BARY
  5.  
  6.  
  7.  
  8.  VectorType PT3BARY( PointType Pt1, PointType Pt2, PointType Pt3,
  9.                      PointType InteriorPt )
  10.  
  11. Computes the barycentric coordinates of InterPt with respect
  12. to the triangle defined by Pt1, Pt2, Pt3.  Returned
  13. is a vector of three coefficents, which are the weights of the three
  14. points of the triangle. InteriorPt is assumed to be in the
  15. triangle.
  16.  
  17. Example:
  18.  
  19.  Coeffs = PT3BARY( point( 0, 0, 0 ),
  20.                    point( 1, 0, 0 ),
  21.                    point( 0, 1, 0 ),
  22.                    point( 0.25, 0.25, 0.0 ) );
  23.